import $api from './index'

// 定义data的属性类型
interface companyData {
  name: string
  title: string
  description: string
}
// 封装接口地址

// 添加功能接口
export const addCompany = async (data: companyData) => {
  const rss = await $api.post('/homework', data)
  return rss
}
